/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent; /* 设置背景为透明 */
    font-size: 18px;
    color: green;
}

header {
    background-color: rgba(91, 154, 132, 0.8); /* 半透明背景 */
    /*background-color: white;*/
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 50px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
}

.search-container {
    background-image: url('images/butterfly-background/butterfly-background.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.search-box input[type="text"] {
    padding: 10px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-box button {
    padding: 10px 20px;
    background-color: #339966;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.advanced-search {
    margin-top: 10px;
    color: green;
    text-decoration: none;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.filter {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    margin: 0 10px;
}

.filter label {
    display: block;
    margin-bottom: 5px;
}

.filter input[type="text"] {
    padding: 5px;
    width: 200px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.tabs {
    display: flex;
    margin-top: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom: 2px solid #339966;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

.exhibit-item {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative; /* 添加相对定位 */
}

.exhibit-item img {
    max-width: 100%; /* 确保图片宽度不超过容器宽度 */
    height: auto; /* 保持图片的宽高比 */
    object-fit: contain; /* 图片在容器内居中显示，并且不裁剪 */
}

.exhibit-item h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.exhibit-item p {
    margin: 0;
}

.more-btn {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #339966;
    text-decoration: none;
}

.exhibit-item .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.exhibit-item .actions a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #339966;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product .product-details {
    text-align: left;
}

.product h3 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.product p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.product .actions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.product .actions a {
    padding: 5px 10px;
    border: 1px solid #007bff;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
}

.product .actions a:hover {
    background-color: #007bff;
    color: white;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.links a {
    margin-right: 10px;
    text-decoration: none;
    color: #339966;
}
